import { S } from '../../s';
import { IPSSearchBarGroup } from './ipssearch-bar-group';
import { PSSysSearchBarItemImplBase } from './pssys-search-bar-item-impl-base';
import { IPSLanguageRes } from '../../res/ipslanguage-res';

export class PSSysSearchBarGroupImpl
  extends PSSysSearchBarItemImplBase
  implements IPSSearchBarGroup
{
  get tooltip(): string {
    return this.M.tooltip;
  }

  protected tooltippslanguageres: IPSLanguageRes;
  getTooltipPSLanguageRes(): IPSLanguageRes | null {
    return (
      this.tooltippslanguageres ||
      (this.tooltippslanguageres = this.fillObjectModel(
        S._276,
        this.M.getTooltipPSLanguageRes,
        S._2c5,
      ) as IPSLanguageRes)
    );
  }

  get width(): number {
    return this.M.width;
  }

  get addSeparator(): boolean {
    return this.M.addSeparator;
  }
  get cls(): string {
    return 'PSSysSearchBarGroupImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._19b) return true;
    return super.instanceof(cls);
  }
}
